package code

import (
	"log"
	"os"
)

func writerFile(content string) {
	file, err := os.Create("./test.txt")
	if err != nil {
		log.Fatal(err)
		return
	}
	defer file.Close()
	_, error := file.Write([]byte(content))
	if error != nil {
		log.Fatal(error)
		return
	}

}
func Writer01() {
	writerFile("hello world")
}
